<template>
	<view style="background-color: #F8F8F8;">
		<view class="nav-back">
			<top-heigth backTitle="合同管理"></top-heigth>
		</view>	
		
		<view v-if="list.length == 0" class="kong-box">
			<uv-empty mode="" text="暂无合同" icon="/static/image/kong-hetong.png"></uv-empty>
		</view>
		<view class="content-box" v-for="item in list">
			<view class="notice2-list">
				<view class="notice-list-l">
					<b>{{item.tAppStaffContractTplVo.title}}</b>
					
				</view>
				<view class="font">
					<view>发起方：{{item.tAppSupplierVo ? item.tAppSupplierVo.supplierName : '同城赴约平台'}}</view>
					<view>接收方：{{item.tAppStaffVo.staffName}}</view>
					<view class="ding">
						<view>发起日期：{{item.createTime}}</view>
						<view class="blue" v-if="item.status == 2">已签订</view>
						<view class="red" v-else>待签署</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import TopHeigth from '@/components/TopHeigth.vue'
	
	export default {
		data() {
			return {
				userInfo: uni.getStorageSync('userInfo'),
				list:[],
			}
		},
		components: { TopHeigth },
		onLoad() {
			uni.$u.http.post('/api/shop/v1_0/tAppStaffContractRCA/queryTAppStaffContract',{}).then((res) => {
				this.list = res.aaData
			})
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	@mixin flex($direction: row) {
		/* #ifndef APP-NVUE */
		display: flex;
		/* #endif */
		flex-direction: $direction;
	}
	.uv-nav-slot {
		@include flex;
		align-items: center;
		justify-content: space-between;
		border-width: 0.5px;
		border-radius: 100px;
		border-color: #dadbde;
		padding: 3px 7px;
		opacity: 0.8;
	}
	
	.notice2-list{
		background-color: #fff;
		border-radius: 24rpx;
		padding: 32rpx 24rpx;
		margin-top: 24rpx;
		.notice-list-l{
			display: flex;
			align-items: center;
			justify-content: space-between;
			font-size: 30rpx;
			color: #333;
		}
		.font{
			color: #999999;
			font-size: 24rpx; 
			margin-top: 16rpx;
			view{
				margin-top:8rpx ;
			}
		}
	}
	
	.ding{
		@include flex;
		align-items: center;
		justify-content: space-between;
	}
</style>
